jQ(function(){	
	jQ('hlxSlider', function() {
		jQ("#slider").hlxSlider();
	})
var shoptime;
jQ('#shoplist li').hover(function(){
	if(jQ(this).index() == 6 || jQ(this).index() == 7 || jQ(this).index() == 8){return false;}
	if(shoptime){clearTimeout(shoptime);closeShopShow();}
	jQ(this).addClass('on');
	obj = jQ(this).find('a').attr('rel');
	jQ('.brand'+obj).show();
},function(){
	if(jQ(this).index() == 6 || jQ(this).index() == 7 || jQ(this).index() == 8){return false;}
	shoptime = setTimeout(closeShopShow,100);
})
jQ('#shopshow').hover(function(){
	clearTimeout(shoptime);
},function(){
	shoptime = setTimeout(closeShopShow,100);
})
function closeShopShow(){
	jQ('#shoplist li').removeClass('on');
	jQ('.brand'+obj).hide();
}

jQ('.next_btn').click(function(){
	var rightlimit = -(jQ('#health li').length-6) * 156;
	if(jQ('#health').position().left > rightlimit){
		jQ('#health').animate({left:"-=156"},500);
	}
})
jQ('.prev_btn').click(function(){
	if(jQ('#health').position().left < 0){
		jQ('#health').animate({left:"+=156"},500);
	}
})

});
